<script>
import * as AllIcons from '@ant-design/icons-vue/lib/icons'
import { h } from 'vue'
export default {
    props: ['type'],
    setup(props, { attrs }) {
        return () => {
            if (AllIcons[props.type]) {
                return h(AllIcons[props.type], attrs)
            }
        }
    }
}
</script>